<h1 class="text-info">Top 10</h1>
<div class="span5">
    <h3 class="text-info">Motorista</h3>
    <table class="table table-striped">
        <tr>
            <th>pos</th>
            <th>nick</th>
            <th>pnt</th>
        </tr>
        <?php
        $consulta = consultaRankingMotorista();
        
        if (mysql_num_rows($consulta) > 0) {
            $i=0;
            while ($linha = mysql_fetch_array($consulta)) {
                $i++;
                echo "<tr><td>".$i."</td>";
                echo "<td>".$linha['nome'] ."</td>";
                echo "<td>".$linha['reputacaoMotorista'] ."</td></tr>";
            }
        } else {
            //echo $consulta;
            msgErroDadosIncorretos();
        }
        ?>
    </table>
</div>

<div class="span5">
    <h3 class="text-info">Caroneiro</h3>
    <table class="table table-striped">
        <tr>
            <th>pos</th>
            <th>nick</th>
            <th>pnt</th>
        </tr>
        <?php
        $consulta = consultaRankingCaroneiro();
        
        if (mysql_num_rows($consulta) > 0) {
            $i=0;
            while ($linha = mysql_fetch_array($consulta)) {
                $i++;
                echo "<tr><td>".$i."</td>";
                echo "<td>".$linha['nome'] ."</td>";
                echo "<td>".$linha['reputacaoCaroneiro'] ."</td></tr>";
            }
        } else {
            //echo $consulta;
            msgErroDadosIncorretos();
        }
        ?>
    </table>
</div>